package aima.core.environment.nqueens;

import aima.core.search.framework.HeuristicFunction;

/**
 * Heuristica de la tarea
 * @author Oscar Villate
 * 		   Andres Peralta
 */
public class HeuristicaNReinasTrabajoEnClase2 implements HeuristicFunction
{

	/**
	 * Funciona de estado
	 */
	public double h(Object state) 
	{
		NQueensBoard tablero = (NQueensBoard) state;
		return tablero.darNumReinasMal(tablero);
	}
}
